#!/bin/bash
# 每当新增一个服务，则添加类似语句
cd /go/server/cmd/spider && go mod tidy && go build ./main.go
# 关闭supervisord
supervisorctl shutdown
# 重启到前台
supervisord -n -c /etc/supervisord.conf